#include "stdafx.h"

#include "Statement.h"

CStatementWhile::CStatementWhile(CVariable *left, CVariable *right, bool not,
								 CompType comp)
{
	m_Left = left;
	m_Right = right;
	m_Not = not;
	m_CompType = comp;
	m_ExecPos = 0;
	m_Type = tStatementWhile;
}

CStatementWhile::CStatementWhile()
{
}

void CStatementWhile::AddStatement(CStatement *var)
{
	m_Statements.push_back(var);
}

bool CStatementWhile::Execute()
{
	bool rtn = false;

	if(m_ExecPos == 0)
	{
		// test condition
		// if condition true
		//    continue execute
		// else
		//	return true
	}

	return rtn;
}